$(function () {

    getAgentSettlementList(1);
    
    $("body").on("click",".detail-settlement",function () {
        window.location.href = baseloaction + "/mobile/uc/agent/settlement/findAgentSettlementById?settlementId="+ $(this).data("id");
    });

    function getAgentSettlementList(pageNo) {
        loadMobilePathData({
            url: baseloaction + '/mobile/uc/agent/settlement/findAgentSettlementList',
            pageNo: pageNo,
            contextId: 'settlement-list-box',
            pageCall: getAgentSettlementList,
            callback:function (pageNo) {
                $("#count").html('结算周期明细（'+ total +'）');
            }
        })
    }
})